#!/bin/bash -f

repoList=(simple-build-system-example simple-EDA-flow-example simple-open-VIP-example simple-Reg-generator-example simple-SoC-framework-example simple-verif-framework-example simple-vlib-example SoC-Pipeline)

cnt=0
for repoPath in ${repoList[@]}
do  
  printf "\ntest ${cnt}: $repoPath ... "
  cnt=$((${cnt}+1))
  cd $repoPath

  # cp ../simple-RAM-generator-example/Makefile .
  # cp ../simple-RAM-generator-example/doc/Makefile doc/
  # cp ../simple-RAM-generator-example/scripts/clone-ref-repo.py scripts/
  git status
  git add -u
  git add dist/.gitkeep
  git add doc/Makefile
  git commit -m "update build script"
  git push origin main
  git status

  cd ..
done
printf "\n"
